import UserLayout from '@/layouts/UserLayout';
import Login from '@/pages/Login';
import Register from '@/pages/Register';
import BasicLayout from '@/layouts/BasicLayout';

// mv
import AmvIndex from '@/pages/AmvIndex/index';
import AmvQueryInfo from '@/pages/AmvQueryInfo/index';
import AmvTicket from '@/pages/AmvTicket/index';
import AmvAch from '@/pages/AmvAch/index';

import AmvC from '@/pages/AmvC/index';
import AmvD from '@/pages/AmvD/index';
import AmvM from '@/pages/AmvM/index';
import AmvT from '@/pages/AmvT/index';

import IndexPage from '@/pages/IndexPage/index';

const routerConfig = [
  {
    path: '/user',
    component: UserLayout,
    children: [
      { path: '/login', component: Login },
      { path: '/register', component: Register },
      { path: '/', redirect: '/user/login' },
    ],
  },
  {
    path: '/',
    component: BasicLayout,
    children: [
      { path: '/amvIndex', component: AmvIndex},
      { path: '/amvQueryInfo', component: AmvQueryInfo},
      { path: '/amvTicket', component: AmvTicket},

      { path: '/amvAch', component: AmvAch},

      { path: '/amvC', component: AmvC},
      { path: '/amvM', component: AmvM},
      { path: '/amvT', component: AmvT},
      { path: '/amvD', component: AmvD},
      // Index
      { path: '/indexPage', component: IndexPage},
      { path: '/', redirect: '/user/login' },
    ],
  },
];

export default routerConfig;
